package com.vhall.component.entity.redpacket.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author shenqing
 * @date 2021/3/3 17:56
 */
@Data
public class RedPacketUnLockReqVO {
    /**
     * PaaS应用ID
     */
    @NotBlank
    @ParamName("app_id")
    @Length(min = 1, max = 100)
    private String appId;

    /**
     * 红包唯一标识ID，对外暴露接口使用这个字段
     */
    @NotBlank
    @ParamName("red_packet_id")
    @Length(min = 32, max = 32)
    private String redPacketUuid;

    /**
     * 创建红包的第三方用户ID
     */
    @NotBlank
    @Length(min = 1, max = 255)
    @ParamName("third_party_user_id")
    private String thirdPartyUserId;

    /**
     * 红包口令密码，当condition为2时，此字段必填
     */
    private String password = "";

    /**
     * 红包领取条件：0=无限制参与 1=分享参与 2=口令参会 3=填写问卷参与 4=邀请人数
     */
    @NotNull
    @Range(min = 0, max = 4)
    private Integer condition;
}
